package de.l3s.forgetit.services.schema;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

import static com.google.common.base.Preconditions.checkNotNull;


@XmlType
public class PIMOActions implements Actions {

	private List<PIMOAction> actions;
	
	public PIMOActions() {
		actions = new ArrayList<PIMOAction>();
	}
	
	@XmlElement(name = "action")
	public List<PIMOAction> getActions() {
		return actions;
	}

	public void addAction(PIMOAction a) {
		checkNotNull(actions);
		actions.add(a);
	}
	
}
